/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jellyfishumbrella.GL;

import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.util.glu.GLU.*;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import java.awt.geom.*;
import org.lwjgl.util.vector.*;

/**
 * 
 * @author 500441547
 */
public class Hud {

	public Hud() {

	}

	public static void render() {
		glMatrixMode(GL_PROJECTION);
		glPushMatrix();

		glLoadIdentity();
		gluOrtho2D(0, RendererGL.DISPLAY_WIDTH, 0, RendererGL.DISPLAY_HEIGHT);

		glMatrixMode(GL_MODELVIEW);
		glPushMatrix();

		glLoadIdentity();

		glTranslatef(RendererGL.DISPLAY_WIDTH / 2, RendererGL.DISPLAY_HEIGHT / 2, 0.0f);

		glLineWidth(1.5f);

		// glDisable(GL_DEPTH_TEST);
		// glDisable(GL_LIGHTING);
		RendererGL.GL_Disables();

		glColor4f(0.2f, 1.0f, 0f, 0.7f);
		glBegin(GL_LINES);
		glVertex2f(0.0f, 10f);
		glVertex2f(0.0f, -10f);
		glVertex2f(-10f, 0.0f);
		glVertex2f(10f, 0.0f);
		glEnd();

		// back to your 3D stuff
		RendererGL.GL_Enables();
		// glEnable(GL_LIGHTING);
		// glEnable(GL_DEPTH_TEST);
		glMatrixMode(GL_PROJECTION);
		glPopMatrix();
		glMatrixMode(GL_MODELVIEW);
		glPopMatrix();
	}

}
